#include "EnemyController.h"
#include "EnemyModel.h"

void EnemyController::Initialization()
{
 	pPlayerController = static_cast<PlayerController*>(mWorld->GetController("Player"));
	this->m_enemyModel = new EnemyModel(mSceneMgr);
}

void EnemyController::AddTime( Real deltatime )
{
	m_enemyModel->setTarget( pPlayerController->getPlayerModel()->getPostion() );
	m_enemyModel->AddTime(deltatime);
}

EnemyController::EnemyController( SceneManager *sm ):
	mSceneMgr(sm)
{
}

void EnemyController::Send( PapaBallMsg msg )
{
	throw std::exception("The method or operation is not implemented.");
}

